package com.kyzh.core.adapters

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.gushenge.core.beans.Sort
import com.kyzh.core.R

class SortLeftAdapter(layout:Int,beans:MutableList<Sort>):BaseQuickAdapter<Sort,BaseViewHolder>(layout ,beans) {
    override fun convert(helper: BaseViewHolder, item: Sort) {
        item?.let {
            helper.setBackgroundColor(R.id.root,it.bgcolor)
                    .setBackgroundColor(R.id.view,it.color)
                    .setText(R.id.text,it.name)
        }
    }
}